import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Detail from '@/components/china/chinaDetail'
import TravelDetail from '@/components/travel/travelDetail'
import SearchCity from '@/components/search/searchCity'

Vue.use(Router)

export default new Router({
  // mode:'history',
  routes: [
    {
  path:'/',
  redirect:'/home'
    },
    {
      path:'/home',
      component:Home
    },
    {
      path: '/home/detail',
      component:Detail,
      name:'detail'
    },
    {
      path: '/home/travelDetail',
      component:TravelDetail,
      name:'travelDetail'
    },
    {
      path: '/home/searchCity',
      component:SearchCity,
      name:'searchCity'
    },
  ]
})
